import request from "@/utils/request/http"

/**
 * @param {*} 获取用户信息 
 * @returns 
 */
export function getUserInfoData() {
  return request({
    url: '/user/getUserInfo',
    method: "POST",
  })
}

/**
 * @param {*} 获取临期积分
 * @returns 
 */
export function getExpireToken() {
  return request({
    url: '/user/expireToken',
    method: "POST"
  })
}

/**
 * @param {*} 获取当前可用卡券
 * @returns 
 */
export function getcouponNumberData() {
  return request({
    url: '/storage/couponNumber',
    method: "POST",
  })
}

/**
 * @param {*} 获取我的订单
 * @returns 
 */
export function getMyOrder() {
  return request({
    url: '/consume/myOrder',
    method: "POST"
  })
}

/**
 * @param {*} 热销
 * @returns 
 */
export function getMarketing() {
  return request({
    url: '/marketing/available',
    method: "POST"
  })
}

/**
 * @param {*} 当月打卡记录
 * @returns 
 */
export function queryTheAttendanceRecordByMonth(data) {
  return request({
    url: 'work/wxAppletsApi/queryTheAttendanceRecordByMonth',
    method: "GET",
    params: data
  })
}

/**
 * @param {*} 签到列表查询
 * @returns 
 */
export function signInAppletList(data) {
  return request({
    url: 'work/signIn/appletList',
    method: "GET",
    params: data
  })
}

/**
 * @param {*} 签到列表查询(按日期)
 * @returns 
 */
 export function signInRecordByDays(data) {
  return request({
    url: 'work/signIn/signInRecordByDays',
    method: "GET",
    params: data
  })
}


/**
 * @param {*} 到达签到接口
 * @returns 
 */
export function signInArriveSignIn(data) {
  return request({
    url: 'work/signIn/arriveSignIn',
    method: "POST",
    data: data
  })
}

/**
 * @param {*} 离开签到接口
 * @returns 
 */
export function signInLeaveSignIn(data) {
  return request({
    url: 'work/signIn/leaveSignIn',
    method: "POST",
    data: data
  })
}


/**
 * @param {*} 请假类型查询 
 * @returns 
 */
 export function getLeaveTypeSelect(data) {
  return request({
    url: 'oa-work/leaveType/getLeaveTypeSelect',
    method: "GET",
    params:data
  })
}

/**
 * @param {*} 获取加班时长 
 * @returns 
 */
 export function getOvertimeDuration(data) {
  return request({
    url: 'oa-work/wxAppletsApi/getOvertimeDuration',
    method: "GET",
    params:data
  })
}

/**
 * @param {*} 获取调休有效时长 
 * @returns 
 */
export function adjRestDuration(data) {
  return request({
    url: 'oa-work/wxAppletsApi/adjRestDuration',
    method: "GET",
    params:data
  })
}